<?php
	/**
	 *	Copyright (c) TeamFlamingo And gray 2004-2009
	 *	www.me-live.com.cn / www.i-gray.cn
	 *
	 *	[ WARNING ]
	 *		This is NOT a freeware!
	 *		You MUST get author's authorization before using it!
	 *	[ WARNING ]
	 *
	 *	Name : write.php / Development Code Evolve
	 *	Created / Modify : 2010-3-31 / --
	 */

	if( !defined( 'IN_TEAME' ) )
	{
		exit( 'Access Denied' );
	}

	if( !$_SESSION['auth'] )
	{
		$errMessage	=	'你还没有登录，没有权限发布文章！';
		include	ME_SYSTEM . '/error.php';
	}

	//	[CH]	判断板块是否存在
	$isExistsFroum	=	false;
	foreach( $forumsResult as $value )
	{
		if( $value['fid'] == $MDK['f'] )
			$isExistsFroum	=	true;
	}

	if( !$isExistsFroum )
	{
		$errMessage	=	'您所访问的板块不存在，或者没有足够的权限！';
		include	ME_SYSTEM . '/error.php';
	}

	include	ME_CORE . '/template.h.php';

	$forumName	=	' &rsaquo; 发布新文章';
	$appRunTime	=	round( getCurrentTime() - $appStartTime, 4 );

	$writeLoaded	=	true;
?>